package cn.com.wanywhn.a2017_04_02_bmob_brvah.Adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import cn.com.wanywhn.a2017_04_02_bmob_brvah.Bean.PostListBean;
import cn.com.wanywhn.a2017_04_02_bmob_brvah.R;

/**
 * Created by tender on 17-4-3.
 */

public class PostListAdapter extends BaseQuickAdapter<PostListBean,BaseViewHolder> {
    public PostListAdapter(int layoutResId, List<PostListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PostListBean item) {
            helper.setText(R.id.post_item_title,item.getTitle());
        helper.setText(R.id.post_item_createTime,item.getCreatetime());
        helper.setText(R.id.post_item_descrip,item.getContext());
        helper.setText(R.id.post_item_lastReply,item.getLastreply());
    }
}
